home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d14 / cppwin10.arc / CDLG.HPP < prev    next >
C/C++ Source or Header  |  1991-01-11  |  852b  |  43 lines

  1. /***
  2.     Class Dlg Header file.
  3.     This class handles Modal dialogs.
  4. Revisions:
  5. 10/24/90 KM Initial coding.
  6. ***/
  7.  
  8. #ifndef CDlg_INC
  9. #define CDlg_INC
  10.  
  11. class CDlg {
  12.     public:
  13.         static CDlg *pCurDlg;
  14.  
  15.         virtual BOOL FAR PASCAL Go(HWND hDlg, unsigned Message,
  16.             WORD wParam, LONG lParam);
  17.  
  18.         virtual BOOL DoInitDialog(WORD nFocusID, LONG lParam)
  19.             { return FALSE; }
  20.  
  21.         virtual BOOL DoCommand(WORD ControlID, LONG lParam)
  22.             { return FALSE; }
  23.  
  24.         virtual BOOL DoDefault(unsigned Message, WORD wParam, LONG lParam)
  25.             { return FALSE; }
  26.  
  27.         int DoDialog(HANDLE hInst, LPSTR lpDlgName, HWND hParent, LONG lParam);
  28.  
  29.         void SetDlgWnd(HWND hWnd)
  30.             { hDialog = hWnd; }
  31.  
  32.             // Center the dialog in the center of the screen
  33.         void Center(void);
  34.  
  35.     protected:
  36.         HWND hParentWnd;
  37.         HWND hDialog;
  38.  
  39.     private:
  40. };
  41.  
  42. #endif
  43.